<template>
	<view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userInfo:{
					identity:{
						member_level:''
					}
				}
			}
		},
		onLoad(options) {
			uni.redirectTo({
				url:'/pages/diy/diy?page_id=168'
			})
		},
		methods: {
			async getUserInfo(){
				let res = await this.$http.request({
					url: this.$api.user.userInfo,
					method: 'POST',
					showLoading: true
				});
				if (res.code == 0) {
					this.userInfo = res.data;
					uni.setStorageSync('userInfo', JSON.stringify(res.data));
				} else {
					uni.removeStorageSync('userInfo');
				}
			}
		}
	}
</script>

<style>

</style>
